package com.axxy.decorate;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public class Beads extends Burden{
    Drink drink;

    public Beads(Drink drink) {
        this.drink = drink;
    }

    @Override
    double cost(){
        return 1.5 + drink.cost();
    }

    @Override
    String getName(){
        return "Beads" + drink.getName();
    }
}
